<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
 	<meta name="content-type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="resources/echarts.js"></script>
</head>
<body>
	<div id="chart" style="width:600px;height:400px">
	</div>
</body>
<script type="text/javascript">
	window.onload=function(){
		var mychart = echarts.init(document.getElementById("chart"));
		var mychart 
		var option = {
			title:{
				text:'样例'
			},
			tooltip:{},
			legend:{
				data:['销量']
			},
			xAxis:{
				data:['手机','硬盘','PC','光驱','鞋子']
			},
			yAxis:{
			},
			series:[{
				name:'销量',
				type:'bar',
				data:[5,20,36,10,10,20]
			}]
		};
		mychart.setOption(option);
		
	};
	
</script>
</html>